cmake_minimum_required(VERSION 3.19)
project(test)

set(CMAKE_CXX_STANDARD 17)

add_executable(test main.cpp)

find_package(PkgConfig REQUIRED)

pkg_check_modules(GIO REQUIRED IMPORTED_TARGET gio-unix-2.0)

include_directories(${GIO_INCLUDE_DIRS})

target_link_libraries(test PkgConfig::GIO)